Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
For example, I use
[System.Web.Mvc.HttpGet]public void NotifyUpdated(string authKey, DateTime date)
But still get
<Message>The requested resource does not support http method 'GET'.</Message>
Same thing happens for all POST/PUT and other methods
Hi Xumix
What version of Umbraco are you using?
/Jan
I should use System.Net.Http.HttpGet
System.Net.Http.HttpGet
I also had that if I didn't prefix my methods with the word Get (and I believe you don't need the attribute then - someone may correct me on that).
So you could have
public void GetNotifyUpdated(string authKey, DateTime date)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Api controller actions do not respect [System.Web.Mvc.HttpGet] attributes
For example, I use
[System.Web.Mvc.HttpGet]
public void NotifyUpdated(string authKey, DateTime date)
But still get
<Message>The requested resource does not support http method 'GET'.</Message>
Same thing happens for all POST/PUT and other methods
Hi Xumix
What version of Umbraco are you using?
/Jan
I should use
System.Net.Http.HttpGet
I also had that if I didn't prefix my methods with the word Get (and I believe you don't need the attribute then - someone may correct me on that).
So you could have
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.